Fix for only one led getting set or reset when the led_name is 'all'
Previous discussion:
http://lists.denx.de/pipermail/u-boot/2011-May/093068.html
Changes since v1:
Fixed checkpatch if statement error noticed by Sergei.
Signed-off-by: Joel A Fernandes <[email protected]>
Signed-off-by: Jason Kridner <[email protected]>
Cc: Sergei Shtylyov <[email protected]>
Signed-off-by: Sandeep Paulraj <[email protected]>
} else {
__led_set(led_commands[i].mask, state);
}
- break;
+ /* Need to set only 1 led if led_name wasn't 'all' */
+ if (strcmp("all", argv[1]) != 0)
+ break;
}
}